<?php include("QuestionFactory.php");
   $userName = "clarence35";
   $factory = new QuestionFactory();
   $userAnswer = $_REQUEST["userAnswer"];
   $userTime = $_REQUEST["userTime"];
   $question = $factory->getUserCurrentQuestion("clarence35");
   $answer = $question->answer;
   $question->solve($userAnswer, $userTime);
   $factory->updateResults($question);
   print "You answered: ".$question->userAnswer.
	 " in ".$question->userTime." seconds.<br>";
   if ($question->userIsCorrect)
      print "Correct!";
   else
      print "Incorrect! The correct answer was: ".
	    $question->answer;
?>

<br />
<a href="QuestionFactoryTest.php">Next Question</a>
<br />

<?php
   print "<a href=\"testhistory.php?user=$userName\">Test History</a>";
?>